import Popup from '../popup';
export default {
  name: 'co-action-sheet',
  props: {
    open: Boolean
  },
  render (h) {
    return h(Popup, {
      staticClass: 'co-action-sheet',
      props: {
        open: this.open,
        position: 'bottom'
      },
      on: {
        'update:open': (val) => {
          this.$emit('update:open', val);
        },
        close: (reason) => {
          this.$emit('close', reason);
        }
      }
    }, this.$slots.default);
  }
};
